package com.shao.onlinepdf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 组织表
 * </p>
 *
 * @author admin
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TOrganize extends Model<TOrganize> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "organize_id", type = IdType.ASSIGN_ID)
    private Long organizeId;

    /** 组织名称 */
    private String name;

    /** 排序 */
    private Integer sort;

    /** 创建时间 */
    private LocalDateTime createTime;

    /** 修改时间 */
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.organizeId;
    }

}
